package com.yzd.learnjava.arrays;

import java.util.Arrays;
import java.util.Collections;

import com.yzd.learnjava.util.Generated;
import com.yzd.learnjava.util.Print;

public class Reverse {
	public static void main(String[] args) {
		CompType[] a = Generated.array(new CompType[12], CompType.generator());
		Print.print("before sorting : " + Arrays.toString(a));
		Arrays.sort(a, Collections.reverseOrder());
		Print.print("after sorting : " + Arrays.toString(a));
	}
}
